import request from '@/utils/request'

// 查询系统消息列表
export function listAcnews(query) {
  return request({
    url: '/picture/acnews/list',
    method: 'get',
    params: query
  })
}

// 查询系统消息详细
export function getAcnews(id) {
  return request({
    url: '/picture/acnews/' + id,
    method: 'get'
  })
}

// 新增系统消息
export function addAcnews(data) {
  return request({
    url: '/picture/acnews',
    method: 'post',
    data: data
  })
}

// 修改系统消息
export function updateAcnews(data) {
  return request({
    url: '/picture/acnews',
    method: 'put',
    data: data
  })
}

// 删除系统消息
export function delAcnews(id) {
  return request({
    url: '/picture/acnews/' + id,
    method: 'delete'
  })
}
